package com.sys.service.impl;

import com.sys.dao.DictionaryDao;
import com.sys.entity.Dictionary;
import com.sys.mapper.DictionaryMapper;
import com.sys.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2016/9/21.
 */
@Service
public class DictionaryServiceImpl implements DictionaryService {

    @Autowired
    private DictionaryDao dictionaryDao;

    @Autowired
    private DictionaryMapper dictionaryMapper;

    @Override
    public List<Dictionary> findByName(String name) {
        return dictionaryDao.findBydicName(name);
    }

    @Override
    public List<Dictionary> search(Map map) {
        List<Dictionary> list= dictionaryMapper.search(map);
        return list;
    }
}
